<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page contentType="text/html; charset=iso-8859-1" language="java" errorPage="" %>
<jsp:useBean id="municipio" scope="session" class="com.ajaxit.prisa.values.MunicipioVO"/>
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- $Id:  $ -->
<!-- $Author:  $ -->
<!-- $Date:  $ -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sistema de Seguimiento Proyectos de Vivienda Prioritaria y Vivienda Saludable</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">td img {display: block;}</style>
<script language="JavaScript1.2" src="js/navegacion.js" type="text/javascript"></script>
<script language="JavaScript1.2" src="js/forms.js" type="text/javascript"></script>
<script language="JavaScript1.2" src="js/buscar.js" type="text/javascript"></script>
<script language="JavaScript1.2" type="text/javascript">
<!-- 
  function cargarDatos ( ) {
	var f = document.f1
<c:if test = '${municipio != null and municipio.id != 0}' >
	f.idMunicipio.value = '<jsp:getProperty name="municipio" property="id" />'
	f.divipola.value = '<jsp:getProperty name="municipio" property="divipola" />'
	f.nombre.value = '<jsp:getProperty name="municipio" property="nombre" />'
    chooseSelectByValue ( f.departamento, '<jsp:getProperty name="municipio" property="departamento" />' )
<c:if test = '${municipio.alias != null }' >
	f.alias.value = '<jsp:getProperty name="municipio" property="alias" />'
</c:if>
	f.longitud.value = '<jsp:getProperty name="municipio" property="longitud" />'
	f.latitud.value = '<jsp:getProperty name="municipio" property="latitud" />'
</c:if>
	f.divipola.focus ( )
  }
// -->
</script>
<link href="css/sca.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
</head>
<body bgcolor="#6b6b6b" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="cargarDatos();">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
   <td><img src="img/spacer.gif" width="10" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="2" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="2" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="45" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="26" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="44" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="2" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="1" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="8" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="762" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="88" height="1" border="0" alt="" /></td>
   <td><img src="img/spacer.gif" width="1" height="1" border="0" alt="" /></td>
  </tr>

  <tr>
   <td colspan="10"><img name="template_r1_c1" src="img/template_r1_c1.gif" width="912" height="127" border="0" id="template_r1_c1" alt="" /></td>
   <td><a href="http://www.sociedadcolombianadearquitectos.org"><img name="template_r1_c11" src="img/template_r1_c11.gif" width="88" height="127" border="0" id="template_r1_c11" alt="" /></a></td>
   <td><img src="img/spacer.gif" width="1" height="127" border="0" alt="" /></td>
  </tr>
  <tr>
   <td colspan="9" rowspan="12" align="center" valign="top" background="img/template_r14_c1.gif"><jsp:include page="menu.jsp" /></td>
   <td colspan="2" rowspan="13" valign="top" bgcolor="#FFFFFF"><div id="espera" style="position:absolute; left:357px; top:174px; width:305px; height:142px; z-index:1; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000; display: none">
  <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#666699">
    <tr>
      <td width="100%" height="120" align="center" valign="middle"><font face="Verdana" size="2">Espere un momento por favor, atendiendo su solicitud.<br>
            <br>
            <img src="img/ProgressBar.gif" width="250" height="25"></font></td>
    </tr>
  </table>
</div><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="workspace">
  <tr>
        <td width="100%"><table width="100%" border="2" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF">
          <tr>
            <td width="20%" align="center" bordercolor="#006600" class="tab">Municipios</td>
            <td width="20%" align="center" bordercolor="#006600" class="tabInactivo" onclick="buscarDepartamentos ( )" onmouseover="changeClass ( this, 'tabOver' )" onmouseout="changeClass ( this, 'tabInactivo' )">Departamentos</td>
            <td width="20%" align="center" bordercolor="#006600" class="tabInactivo" onclick="buscarRegiones ( )" onmouseover="changeClass ( this, 'tabOver' )" onmouseout="changeClass ( this, 'tabInactivo' )">Regiones</td>
            <td width="20%" bordercolor="#FFFFFF">&nbsp;</td>
            <td width="20%" bordercolor="#FFFFFF">&nbsp;</td>
          </tr>
        </table><br />
      <form id="f1" name="f1" method="post" action="guardarMunicipio.do">
    <table width="98%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="23%" class="titulos">id</td>
        <td width="77%" class="datos"><input name="idMunicipio" type="text" id="idMunicipio" value="" readonly="readonly" /></td>
      </tr>
      <tr>
        <td class="titulos">divipola</td>
        <td><input type="text" name="divipola" id="divipola" /></td>
      </tr>
      <tr>
        <td class="titulos">nombre</td>
        <td><input type="text" name="nombre" id="nombre" value="" /></td>
      </tr>
      <tr>
        <td class="titulos">departamento</td>
        <td><select name="departamento" id="departamento">
          <option value="-1">...</option>
          <c:forEach var="departamento" items="${sessionScope.departamentos}">
            <option value='<c:out value="${departamento.id}" />'>
              <c:out value="${departamento.nombre}" />
              </option>
          </c:forEach>
        </select></td>
      </tr>
      <tr>
        <td class="titulos">abreviatura</td>
        <td><input type="text" name="alias" id="alias" /></td>
      </tr>
      <tr>
        <td class="titulos">longitud</td>
        <td><input type="text" name="longitud" id="longitud" /></td>
      </tr>
      <tr>
        <td class="titulos">latitud</td>
        <td><input type="text" name="latitud" id="latitud" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><input type="submit" name="button" id="button" value="Enviar" /></td>
        <td><input type="submit" name="Cancelar" id="Cancelar" value="Cancelar" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </form>  <!-- Fin Workspace" -->
</td>
  </tr>
</table>
</td>
   <td><img src="img/spacer.gif" width="1" height="46" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="13" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="14" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="14" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="15" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="30" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="15" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="33" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="12" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="13" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="15" border="0" alt="" /></td>
  </tr>
  <tr>
   <td><img src="img/spacer.gif" width="1" height="14" border="0" alt="" /></td>
  </tr>
  <tr>
   <td colspan="9" background="img/template_r14_c1.gif" />&nbsp;</td>
   <td><img src="img/spacer.gif" width="1" height="383" border="0" alt="" /></td>
  </tr>
  <tr>
    <td colspan="12" ><jsp:include page="piePagina.jsp" /></td>
  </tr>
</table>
</body>
</html>
